package com.woniuxy.service;

import com.woniuxy.dao.UserDao;
import com.woniuxy.entity.User;

import java.util.List;

public class UserServiceCgLib {
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public List<User> findOneByLikeName(String name){
        List<User> oneByLikeName = userDao.findOneByLikeName(name);
        oneByLikeName.forEach(System.out::println);
        return oneByLikeName;
    }
}
